<template>
  <div class="tabBar">
       <van-tabbar v-model="active" :style="indexZ">
          <van-tabbar-item icon="home-o" to="/index" name="/index">首页</van-tabbar-item>
          <van-tabbar-item icon="records"  to="/Release" name="/Release">需求</van-tabbar-item>
          <van-tabbar-item icon="gem-o" to="/partTime" name="/partTime">服务</van-tabbar-item></van-tabbar-item>
          <van-tabbar-item icon="friends-o" to="/Mymi" name="/Mymi">我的</van-tabbar-item>
      </van-tabbar>
  </div>
</template>
<script>
import { Tabbar, TabbarItem } from 'vant';
  export default {
      props: {
        Zindex:Boolean,
        },
      data() {
        return {
          active: this.$route.path
        }
      },
      created (){
        
      },
      computed: {
        indexZ(){
          console.log(this.Zindex);
          return this.Zindex ? "display: none" :{}
        }
      },
      methods:{
        
      }
  }
</script>

<style lang="less" scoped>

</style>
